package com.zlx.guguanjia.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zlx.guguanjia.entity.SysUser;
import com.zlx.guguanjia.mapper.SysUserMapper;
import com.zlx.guguanjia.service.QualificationService;
import com.zlx.guguanjia.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @Author 周罗校
 * @Description
 * @ClassName SysUserServiceImpl
 * @date 2020.10.26 16:02:34
 * 该版权归周罗校所有，最终解释权以官方为准
 */

@Service
@Transactional
public class SysUserServiceImpl extends BaseServiceImpl<SysUser,Long> implements SysUserService {
    @Autowired
    private SysUserMapper mapper;

    @Override
    public PageInfo selectPage(int start, int pageSize, Map<String, Object> map) {
        PageHelper.startPage(start,pageSize);
        return new PageInfo<>(mapper.selectPage(map));
    }

    @Override
    public List<SysUser> selectByRid(long rid) {
        return mapper.selectByRid(rid);
    }

    @Override
    public List<SysUser> selectNotSelectRoleUser(long rid, long oid) {
        return mapper.selectNotSelectRoleUser(rid,oid);
    }
}
